const BTN_ICON = ''


function FileButton(editorId: any, onclick: any) {
    //@ts-ignore
    window.UE.registerUI('upload-file', (editor: any, uiName: any) => {
        //@ts-ignore
        return new window.UE.ui.Button({
            name: uiName,
            title: '文件',
            cssRules: `background-image: url('${BTN_ICON}') !important; background-size: 16px;background-repeat: no-repeat;background-position: center;`,
            onclick,
        });
    }, 101, editorId);
}

export default FileButton